using RBAC.Api.Demain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Api.Demain.ContentManagement
{
    /// <summary>
    /// 科室表
    /// </summary>
    [Table("Departments")]
    public class DepartmentModel : BaseEntity
    {
        /// <summary>
        /// 科室名称
        /// </summary>
        [StringLength(50)]
        public string? Name { get; set; }

        /// <summary>
        /// 科室介绍
        /// </summary>
        public string? Introduction { get; set; }

        /// <summary>
        /// 医院ID
        /// </summary>
        [Required]
        public long HospitalId { get; set; }

        /// <summary>
        /// 父级科室ID
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 状态：0-禁用，1-启用
        /// </summary>
        [Required]
        public bool Status { get; set; }
    }
}